import Newspublish from '../../../components/Publish/Newspublish'
import usePublic from './usepublic'
import { Button } from 'antd'
export default function Unpublished() {
    const { dataSource, handleDel } = usePublic(3)
    return (
        <div>
            <Newspublish dataSource={dataSource}
                button={(id) => {
                    return <Button danger type='primary' onClick={() => handleDel(id)} >删除</Button>
                }}
            >
            </Newspublish >
        </div >
    )
}
